import request from '@/utils/request'

/**
 * 【公司管理】树列表JSON(权限)
 *@param{object}
 */

export function getTree(data: any) {
  return request({
    url: '/Base_Company/TreeJson',
    method: 'post',
    data,
  })
}
export function getList(data: any) {
  return request({
    url: '/Base_Company/TreeGridListJson',
    method: 'post',
    data,
  })
}
//部门管理数据编辑
export function doEdit(data: any) {
  return request({
    url: '/Base_Company/saveCompany',
    method: 'post',
    data,
  })
}
//部门管理数据删除
export function doDelete(data: any) {
  return request({
    url: '/Base_Company/DelCompany',
    method: 'post',
    data,
  })
}
//部门管理获取
export function GetCompany(data: any) {
  return request({
    url: '/Base_Company/GetCompany',
    method: 'post',
    data,
  })
}
